package com.waves.spring.aop.aspect.Invocation;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class Advice1 implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("②");
        System.out.println("Advice1.before()");
        Object result = invocation.proceed();
        System.out.println("⑥");
        System.out.println("Advice1.after()");
        return result;
    }
}



